{include file="public/head" /}
  
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>后台管理</cite></a>
        <a><cite>直付通管理</cite></a>
        <a><cite>账单列表</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
       <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="{:url('settle')}">
          <input class="layui-input" placeholder="二级商户" name="community_name" id="community_name" {if isset($community_name)}value="{$community_name}"{/if}>
          <div class="layui-input-inline" style="width:100px">
            <input class="layui-input" placeholder="开始时间" name="start_time" id="start" {if isset($start_time)}value="{$start_time}"{/if} style="width:90px">
          </div>
          <div class="layui-input-inline" style="width:100px">
            <input class="layui-input" placeholder="结束时间" name="end_time" id="end" {if isset($end_time)}value="{$end_time}"{/if}  style="width:90px">
          </div>
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock>
        <span class="x-right" style="line-height:40px">订单总金额：{$order_money}元 , | 结算金额{$settle_money}元, | 共有数据：{$number} 条</span>
      </xblock>
      <table class="layui-table" id="table">
        <thead  style="text-align:center;">
          <tr>
            <th style="text-align: center; font-size: 16px;">id</th>
              <th style="text-align: center; font-size: 16px;">账单id</th>
            <th style="text-align: center; font-size: 16px;">二级商户</th>
            <th style="text-align: center; font-size: 16px;">订单金额</th>
            <th style="text-align: center; font-size: 16px;">结算金额</th>
            <th style="text-align: center; font-size: 16px;">收款账号</th>
            <th style="text-align: center; font-size: 16px;">分账扣款账号</th>
            <th style="text-align: center; font-size: 16px;">支付时间</th>
          </tr>
        </thead>
        <tbody style="text-align:center;">
            {foreach $list as $lis}
            <tr>
              <td style="text-align: center;">{$lis.id}</td>
                <td style="text-align: center;">{$lis.order_uid}</td>
              <td style="text-align: center;">{$lis.community_name}</td>
              <td style="text-align: center;">{$lis.order_money}</td>
              <td style="text-align: center;">{$lis.settle_money}</td>
                <td style="text-align: center;">{$lis.receive_account}</td>
                <td style="text-align: center;">{$lis.debit_account}</td>
              <td style="text-align: center;">{$lis.ctime}</td>



            </tr>
            {/foreach}
        </tbody>
      </table>
      <div class="page">
        <div id="page">
          {$list->render()|raw}
        </div>
      </div>

    </div>
    <script>
      function payurl(id){
        layer.open({
          type: 1,
          skin: 'x-right', //样式类名
          closeBtn: 0, //不显示关闭按钮
          anim: 2,
          shadeClose: true, //开启遮罩关闭
          area: ['80%', '300px'],
          content:
                  '<div style="padding: 20px 100px; font-size:18px">'+
                  '支付宝小程序缴费：https://www.zaozaopay.com/pages/zft/pay?id='+ id + '<br><br>'+


                  '</div>'
        });
      }
      layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
          elem: '#start', //指定元素
          type:'datetime',
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
          ,type:'datetime',
        });
      });


    </script>

    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>

  </body>

</html>